<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It is a breeze. Simply tell Lumen the URIs it should respond to
| and give it the Closure to call when that URI is requested.
|
*/

// $router->post('/api/product/store/all', 'Admin\ActivityController@all');

// 地图管理 admin
$router->group(['namespace' => 'Admin', 'prefix' => 'api/product/map'], function () use ($router) {
    $router->post('/all', 'MapController@all');
    $router->post('/list', 'MapController@list');
    $router->post('/add', 'MapController@add');
    $router->post('/update', 'MapController@update');
    $router->post('/delete', 'MapController@delete');
    $router->post('/all/panorama', 'MapController@allPanorama');
    $router->post('/list/panorama', 'MapController@listPanorama');
    $router->post('/add/panorama', 'MapController@addPanorama');
    $router->post('/update/panorama', 'MapController@updatePanorama');
    $router->post('/delete/panorama', 'MapController@deletePanorama');
    $router->post('/all/infoSpot', 'MapController@allInfoSpot');
    $router->post('/list/infoSpot', 'MapController@listInfoSpot');
    $router->post('/add/infoSpot', 'MapController@addInfoSpot');
    $router->post('/update/infoSpot', 'MapController@updateInfoSpot');
    $router->post('/delete/infoSpot', 'MapController@deleteInfoSpot');
    $router->post('/start/panorama', 'MapController@getMapStart');
    $router->post('/panorama/info', 'MapController@getPanoramaInfo');
});

// 地图管理 client
$router->group(['namespace' => 'Client', 'prefix' => 'web/product/map'], function () use ($router) {
    $router->post('/start/panorama', 'MapController@getMapStart');
    $router->post('/panorama/info', 'MapController@getPanoramaInfo');
    $router->post('/all/panorama', 'MapController@allPanorama');
});


